<%
    String path = request.getContextPath();
    String ctx = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>


<%@ page language="java" pageEncoding="UTF-8" %>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport"
      content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title></title>

<!-- Set render engine for 360 browser -->
<meta name="renderer" content="webkit">

<!-- No Baidu Siteapp-->
<meta http-equiv="Cache-Control" content="no-siteapp"/>

<link rel="icon" type="image/png" href="assets/i/favicon.png">

<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">

<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Amaze UI"/>
<link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
<meta name="msapplication-TileColor" content="#0e90d2">

<link rel="stylesheet" href="<%=ctx%>/shop/lib/assets/css/amazeui.min.css">
<link rel="stylesheet" href="<%=ctx%>/shop/lib/assets/css/app.css">
<script src="<%=ctx%>/shop/lib/assets/js/jquery.min.js"></script>
<script src="<%=ctx%>/shop/lib/assets/js/handlebars.min.js"></script>
<script src="<%=ctx%>/shop/lib/assets/js/amazeui.min.js"></script>
<script src="<%=ctx%>/shop/lib/assets/js/amazeui.widgets.helper.min.js"></script>
<script src="<%=ctx%>/shop/lib/assets/js/drag.js"></script>


<script>
    $(function () {
        var paths = window.location.pathname.split('/');
        var pagePath = paths[paths.length - 1];
        console.log(pagePath)
        switch (pagePath) {
            case 'index.jsp':
            case 'xingti.jsp':
            case 'xxdp.jsp':
            case 'echu.jsp':
            case 'gwzn.jsp':
            case 'smfw.jsp':
            case 'dsmd.jsp':
            case 'dsmd-detail.jsp':
            case 'dsmd-appointment.jsp':
                $('.menu-index').addClass('active');
                break;
            case 'ecshop.jsp':
            case 'ecshop-detail.jsp':
            case 'ecshop-list.jsp':
            case 'user-shop.jsp':
            case 'order.jsp':
            case 'store-pay-order.jsp':
                $('.menu-shopong').addClass('active');
                break;
            case 'business-school.jsp':
            case 'mr-business-school-detail.jsp':
            case 'xuefei.jsp':
            case 'baoming.jsp':
                $('.menu-school-business').addClass('active');
                break;
            case 'store.jsp':
            case 'store-list.jsp':
            case 'store-detail.jsp':
                $('.menu-haodian').addClass('active');
                break;
            case 'bbs.jsp':
            case 'published.jsp':
                $('.menu-bbs').addClass('active');
                break;
            case 'settings.jsp':
            case 'modify.jsp':
            case 'lfb-record.jsp':
            case 'wdsc-list.jsp':
            case 'order-list.jsp':
            case 'fagl-list.jsp':
            case 'xxxc-list.jsp':
            case 'address-list.jsp':
            case 'address-editor.jsp':
            case 'system.jsp':
            case 'yjfk.jsp':
            case 'zlfb.jsp':
            case 'lxwm.jsp':
                $('.menu-setting').addClass('active');
                break;
            default:
                break;
        }
    })
</script>

